#include <stdio.h>

typedef struct ListNode{
    int value;
    struct ListNode *next;
}ListNode;

ListNode *Reverse(ListNode *List){
    ListNode *current=List;
    ListNode *left=NULL;
    ListNode *right=current->next;
    while (right!=NULL){
        left=current;
        current=right;
        current->next=left;
        left=current;
        current=right;
        right=right->next;
    }
    List=current;
    return(List);
}